//
//  DTCDeviceModel.h
//  BluetoothProject
//
//  Created by JianWei Chen on 16/9/5.
//  Copyright © 2016年 JianWei Chen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>


/**
 蓝牙设备模型
 */
@interface DTCDeviceModel : NSObject

/*
    数据库建表字段
 */
@property(nonatomic, copy) NSString *mac ;//设备的唯一标识
@property(nonatomic, copy) NSString *dataID ;//后台数据ID
@property(nonatomic, copy) NSString *deviceID ;//后台设备ID
@property(nonatomic, copy) NSString *localName ;//本地名，即设备硬件名
@property(nonatomic, copy) NSString *customName ;//自定义名字，网络名字
@property(nonatomic, copy) NSString *password ;//设备密码
@property(nonatomic, copy) NSString *peripheralUUID ;//外设的identify


/**
    常用字段
 */
@property(nonatomic, strong) CBPeripheral *currentPeripheral ;//当前外设
@property(nonatomic, assign) NSTimeInterval scanTime ;//外设被扫描到以后
@property(nonatomic, strong) NSNumber *peripheralRSSI ;//外设信号强弱

@end
